/*
 * @Description:
 */
import request from '@/utils/request'
export default {
    //添加
    add(data) {
        return request.post(`/fish/base/stageDisease/add`, { ...data })
    },
    //编辑
    edit(data) {
        return request.post(`/fish/base/stageDisease/edit`, { ...data })
    },
    //主键删除
    delId(id) {
        return request.get(`/fish/base/stageDisease/delById?id=${id}`)
    },
    // 主键查询
    queryById(id) {
        return request.get(`/fish/base/stageDisease/queryById?id=${id}`)
    },
    //条件查询
    queryByCondition(data) {
        return request.post(`/fish/base/stageDisease/queryByCondition`, { ...data })
    },
    //分页查询
    queryPageByCondition(data) {
        data.entity = !data.entity ? {} : data.entity
        return request.post(`/fish/base/stageDisease/queryPageByCondition`, { ...data })
    }
};
